﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>嘉宾</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    @Styles.Render("~/bundles/css")
    <link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all" />
    <style>
        .layui-form-item {
            margin-bottom: 0;
        }
    </style>
</head>
<body class="childrenBody">
    <blockquote class="layui-elem-quote news_search layui-form search">
        <div class="layui-inline">
            <div class="layui-input-inline">
                <div class="layui-input-inline">
                    <input type="text" qn="gName" placeholder="请输入姓名" class="layui-input">
                </div>
                <div class="layui-input-inline">
                    <div class="layui-form-item">
                        <div class="layui-input-inline">
                            @Html.B_DropDownList("嘉宾分类", "gType")
                        </div>
                    </div>
                </div>
            </div>
            <a class="layui-btn search_btn" data-type="search">查询</a>
        </div>
        <div class="layui-inline">
            <a class="layui-btn layui-btn-normal usersAdd_btn" data-type="add">注册</a>
        </div>
        <div class="layui-inline">
            <a class="layui-btn layui-btn-danger batchDel" data-type="deleteList">删除</a>
        </div>
        <div class="layui-inline">
            <div class="layui-form-mid layui-word-aux"></div>
        </div>
    </blockquote>
    <div class="layui-form users_list">
        <table id="tbData" class="layui-table" lay-filter="btnClick" lay-data="{height: 'full-110',id: 'tableReload', cellMinWidth: 80,page: true, limit:10, url:'@Url.Action("getPageData")'}">
            <thead>
                <tr>
                    <th lay-data="{type:'checkbox'}">ID</th>
                    @*<th lay-data="{field:'id', width:100, sort: true}">ID</th>*@
                    <th lay-data="{field:'gName', width:120}">姓名</th>
                    <th lay-data="{field:'sex', width:80,templet:'#sexTpl'}">性别</th>
                    <th lay-data="{field:'gType', width:120,templet:'#gTypeTpl'}">嘉宾分类</th>
                    <th lay-data="{field:'tel', width:120, sort: true}">手机号码</th>
                    <th lay-data="{field:'contact', width:120, sort: true}">联系人</th>
                    <th lay-data="{field:'contactTel', width:120, sort: true}">联系人电话</th>
                    <th lay-data="{field:'serialNo', width:80, sort: true}">排序号</th>
                    <th lay-data="{fixed: 'right', width:178, align:'center', toolbar: '#barBtns'}"></th>
                </tr>
            </thead>
        </table>
    </div>
    <div id="page"></div>
    <script src="~/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script src="~/js/formRender.js"></script>
    <script src="~/js/list.js"></script>
    <script type="text/html" id="barBtns">
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>
    @Html.B_Code("嘉宾分类", "gType")
    @Html.B_Code("性别", "sex")
    <script>
        var appUrl = '@Url.Action("")';
        var addUrl = '@Url.Action("Data")';
        var editUrl = '@Url.Action("Data")';
        var winWidth = '900px';
        var winHeight = '600px';
    </script>
</body>
</html>

